package com.winshare.saleAssistant;

import com.winshare.saleAssistant.util.PwdHashUtils;
import com.winshare.saleAssistant.util.SaltUtils;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import springfox.documentation.swagger2.annotations.EnableSwagger2;

@EnableSwagger2
@ComponentScan(basePackages = {"com.winshare"})
@MapperScan({"com.winshare.saleAssistant.mapper","com.winshare.saleAssistant.dao"})
@SpringBootApplication
public class SaleAssistantApplication {

    public static void main(String[] args) {
        String salt = SaltUtils.next();
        String password = "NDJkMjkzNDliYTY592843745764ajq";
        String actualPassword= PwdHashUtils.hash(password,"superlu"+salt );
        System.out.println("salt:"+salt);
        System.out.println("actualPassword:"+actualPassword);
        SpringApplication.run(SaleAssistantApplication.class, args);
    }
}
